home *** CD-ROM | disk | FTP | other *** search
- ; open.a - open a file.
- ; (C) Copyright 1984, 1985 Gregory R. Mansfield - All Rights Reserved.
- ; G. R. Mansfield. 84/06/22.
- ; Ver 1.0-5517.
-
-
- include "include/msdos.ah"
- dseg
- public errno_
-
- cseg
- public open_
-
-
- ; int open(s, m)
- ; char *s;
-
- open_: mov bx,sp
- mov ax,[bx+4] ; mode
- mov dx,[bx+2] ; path name pointer
- mov ah,FR_OPF ; open a file
- int I_FCN
- jnb opn1 ; if no error
- mov errno_,ax
- mov ax,-1
- opn1: ret
-